package net.ericaro.neojavagen.blocks ;
import net.ericaro.neojavagen.blocks.StatementNoShortIf;
import net.ericaro.neojavagen.expressions.Expression ;

/**
* *<pre> IfThenElseStatementNoShortIf :
    if ( Expression ) StatementNoShortIf else StatementNoShortIf
</pre>
*/
public class IfThenElseStatementNoShortIf  implements StatementNoShortIf {

Expression expression;
StatementNoShortIf statementnoshortif1;
StatementNoShortIf statementnoshortif2 ;

public IfThenElseStatementNoShortIf( Expression expression, StatementNoShortIf statementnoshortif1, StatementNoShortIf statementnoshortif2 ){
	this.expression = expression; this.statementnoshortif1 = statementnoshortif1; this.statementnoshortif2 = statementnoshortif2 ;
	}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( "if" ).append(" ");
stringbuilder.append( "(" ).append(" ");
stringbuilder.append( this.expression ).append(" ");
stringbuilder.append( ")" ).append(" ");
stringbuilder.append( this.statementnoshortif1 ).append(" ");
stringbuilder.append( "else" ).append(" ");
stringbuilder.append( this.statementnoshortif2 ).append(" ") ;
	return stringbuilder.toString();
}

}
